use Illuminate\Support\Str; $random = Str::random(40);
phpCopy<?php $Random_str = uniqid(); echo "Random String:", $Random_str, "\n"; ?>